﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DCTEDU_/CanBoMaster.master" AutoEventWireup="true"
    CodeBehind="TinhTrangHoatDong.aspx.cs" Inherits="QuanLyThietBi.DCTEDU_.BaoCao.TinhTrangHoatDong" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Tình trạng hoạt động của Phòng máy tinh</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <section class="panel">  
            <header class="panel-heading">
                    Báo cáo tình trạng hoạt động <asp:Literal runat="server" ID="litPhong"></asp:Literal> 
                    <span class="tools pull-right">
                    <asp:LinkButton ID="cmdTinhTrang" runat="server" 
                 Style="float: left; position: relative; bottom: 5px;margin-right: 5px; color:white; font-weight: bold;"
                Text="Xem tất cả báo cáo" PostBackUrl="~/DCTEDU_/BaoCao/XemTinhTrang.aspx" CausesValidation="False" CssClass="btn btn-warning btn-image-report" />  
                    <asp:DropDownList runat="server" ID="cboPhongHoc" AutoPostBack="True" OnSelectedIndexChanged="cboPhongHoc_OnSelectedIndexChanged" CssClass="form-group"/>
                    </span>
                    </header>
            <div class="panel-body">
                <div class="alert alert-danger clearfix">
                <span class="alert-icon"><i class="fa fa-envelope-o"></i></span>
                <div class="notification-info">
                    <ul class="clearfix notification-meta">
  
                    </ul>
                    <p>
                        <asp:Image runat="server" ID="img1" ImageUrl="~/Images/checkk.png"/> Icon này thể hiện tình trạng thiết bị ổn định; <asp:Image runat="server" ID="Image1" ImageUrl="~/Images/redx.png"/> Icon này thể hiện tình trạng thiết bị có vấn đề;<br/>
                        1. Chọn phòng máy muốn báo cáo;<br/>
                        2. Chiếu theo dãy các phòng máy, chọn 1 thiết bị bất kỳ(thiết bị có vấn đề);<br/>
                        3. Sau khi chọn thiết bị thành công, nút chọn báo cáo được bật, người dùng đã có thể nhập thông tin vào form Báo cáo.
                    </p>
                </div>
            </div>
                 <div class="row" style="display: none;">
                <div class="col-lg-2">
                    <asp:TextBox runat="server" ID="txtday1" CssClass="col-lg-12 form-control"></asp:TextBox> 
 <asp:Literal runat="server" ID="litday1"></asp:Literal>
                </div>
                <div class="col-lg-2">
                    <asp:TextBox runat="server" ID="txtday2" CssClass="col-lg-12 form-control"></asp:TextBox>    
                     <asp:Literal runat="server" ID="litday2"></asp:Literal>
                </div>  
                <div class="col-lg-2">
                    <asp:TextBox runat="server" ID="txtday3" CssClass="col-lg-12 form-control"></asp:TextBox>   
                     <asp:Literal runat="server" ID="litday3"></asp:Literal>
                </div>
                <div class="col-lg-2">
                    <asp:TextBox runat="server" ID="txtday4" CssClass="col-lg-12 form-control"></asp:TextBox>  
                     <asp:Literal runat="server" ID="litday4"></asp:Literal>
                </div>
            </div>
             <div class="row">

        <div class="col-lg-2">
            <section class="panel">
                        <header class="panel-heading">
                            Dãy 1
                             <span class="tools pull-right">
                                <a class="fa fa-chevron-down" href="javascript:;"></a>
                            </span>
                        </header>
                        <div class="panel-body">
                            <div class="dd">
                                <ol class="dd-list">     
                                <asp:Repeater runat="server" ID="rpDay1" OnItemCommand="rpThietBi1_ItemCommand"><ItemTemplate>
                                    <li class="dd-item" data-id='<%# Eval("MaThietBi") %>'>
                                        <div class="dd-handle"><asp:LinkButton runat="server" ID="cmdSelect" CommandName="Select" CommandArgument='<%# Eval("MaThietBi") %>'><%# Eval("TenThietBi") %></asp:LinkButton> <span class="tools pull-right"><%# (Eval("TrangThai").ToString())=="True" ? "<html><img src=../../Images/checkk.png /></html>" : "<html><img src=../../Images/redx.png /></html>"%></span></div>
                                    </li>   
                                    </ItemTemplate></asp:Repeater>
                                </ol>
                            </div>
                        </div>
                    </section>
        </div>
        <div class="col-lg-2">
            <section class="panel">
                        <header class="panel-heading">
                            Dãy 2
                              <span class="tools pull-right">
                                <a class="fa fa-chevron-down" href="javascript:;"></a>
                            </span>
                        </header>
                        <div class="panel-body">
                            <div class="dd">
                                <ol class="dd-list">
                                   <asp:Repeater runat="server" ID="rpDay2" OnItemCommand="rpThietBi2_ItemCommand"><ItemTemplate>
                                    <li class="dd-item" data-id='<%# Eval("MaThietBi") %>'>
                                        <div class="dd-handle"><asp:LinkButton runat="server" ID="cmdSelect" CommandName="Select" ToolTip='<%# getHoverTrangThai(Eval("MaThietBi")) %>' CommandArgument='<%# Eval("MaThietBi") %>'><%# Eval("TenThietBi") %></asp:LinkButton> <span class="tools pull-right"><%# (Eval("TrangThai").ToString())=="True" ? "<html><img src=../../Images/checkk.png /></html>" : "<html><img src=../../Images/redx.png /></html>"%></span></div>
                                    </li>   
                                    </ItemTemplate></asp:Repeater>
                                </ol>
                            </div>
                        </div>
                    </section>
        </div>  
        <div class="col-lg-2">
            <section class="panel">
                        <header class="panel-heading">
                            Dãy 3
                              <span class="tools pull-right">
                                <a class="fa fa-chevron-down" href="javascript:;"></a>
                            </span>
                        </header>
                        <div class="panel-body">
                            <div class="dd">
                                <ol class="dd-list">
                                   <asp:Repeater runat="server" ID="rpDay3" OnItemCommand="rpThietBi3_ItemCommand"><ItemTemplate>
                                    <li class="dd-item" data-id='<%# Eval("MaThietBi") %>'>
                                        <div class="dd-handle"><asp:LinkButton runat="server" ID="cmdSelect" CommandName="Select" CommandArgument='<%# Eval("MaThietBi") %>'><%# Eval("TenThietBi") %></asp:LinkButton> <span class="tools pull-right"><%# (Eval("TrangThai").ToString())=="True" ? "<html><img src=../../Images/checkk.png /></html>" : "<html><img src=../../Images/redx.png /></html>"%></span></div>
                                    </li>   
                                    </ItemTemplate></asp:Repeater>
                                </ol>
                            </div>
                        </div>
                    </section>
        </div>
        <div class="col-lg-2">
            <section class="panel">
                        <header class="panel-heading">
                            Dãy 4
                              <span class="tools pull-right">
                                <a class="fa fa-chevron-down" href="javascript:;"></a>
                            </span>
                        </header>
                        <div class="panel-body">
                            <div class="dd">
                                <ol class="dd-list">
                                   <asp:Repeater runat="server" ID="rpDay4"  OnItemCommand="rpThietBi4_ItemCommand"><ItemTemplate>
                                    <li class="dd-item" data-id='<%# Eval("MaThietBi") %>'>
                                        <div class="dd-handle"><asp:LinkButton runat="server" ID="cmdSelect" CommandName="Select" CommandArgument='<%# Eval("MaThietBi") %>'><%# Eval("TenThietBi") %></asp:LinkButton> <span class="tools pull-right"><%# (Eval("TrangThai").ToString())=="True" ? "<html><img src=../../Images/checkk.png /></html>" : "<html><img src=../../Images/redx.png /></html>"%></span></div>
                                    </li>   
                                    </ItemTemplate></asp:Repeater>
                                </ol>
                            </div>
                        </div>
                    </section>
        </div>     
        <div class="col-lg-4">
            <section class="panel">
                        <header class="panel-heading">
                           Báo cáo tình trạng thiết bị hiện tại
                              <span class="tools pull-right">
                                <a class="fa fa-chevron-down" href="javascript:;"></a>
                            </span>
                        </header>
                        <div class="panel-body">
                            <asp:HiddenField runat="server" ID="H_MaThietBi" Value="0"/>
                            <div class="row">     
                             <div class="form-group">
                               <asp:Literal runat="server" ID="litCanBo"></asp:Literal>
                               </div>  
                               </div>
                               <div class="row"> 
                          <div class="form-group">
                               <label class="col-sm-6 control-label"><asp:Literal runat="server" ID="litTenThietBi"></asp:Literal></label>
                               </div>  
                               </div>
                        <div class="row"> &nbsp;
                         </div>         
                        <div class="row"> 
                    <div class="form-group">
                        <label class="col-sm-6 control-label">Loại tình trạng:<span style="color: Red">(*)</span></label>
                        <div class="col-sm-6">
                        <asp:DropDownList ID="cboLoaiTinhTrang" runat="server" CssClass="form-control canh-float-left error" ></asp:DropDownList>
                        </div>
                    </div>    
                    </div> 
                     <div class="row"> &nbsp;
                         </div> 
                     <div class="row"> 
                    <div class="form-group">    
                     <label class="col-sm-6 control-label">Ghi chú:</label>
                        <div class="col-sm-6">
                        <asp:TextBox ID="txtGhiChu" runat="server" TextMode="MultiLine" Rows="3" CssClass="form-control canh-float-left error" ></asp:TextBox>
                        </div>
                     </div>
                    </div> 
                    <div class="row"> &nbsp;
                         </div> 
                           <div class="row">
                                <div class="alert alert-warning clearfix">
                <span class="alert-icon"><i class="fa fa-envelope-o"></i></span>
                <div class="notification-info">
                    <ul class="clearfix notification-meta">
  
                    </ul>
                    <p>
                        Sau khi người dùng chọn Báo cáo, hệ thống tự động gửi Báo cáo đến Quản trị Hệ thống, thời gian chờ đợi từ 3-5 ngày để quản trị kiểm tra hệ thống.
                    </p>
                </div>
            </div> 
                    <div class="form-group">
                         <asp:Button ID="cmdLuu" runat="server" 
                 Style="float: right; position: relative; bottom: 5px;margin-left: 5px;"
                OnClick="cmdReport_OnClick" Text="Báo cáo" CausesValidation="False" CssClass="btn btn-primary btn-image-report" />  
                   </div>
                           </div>
                        </div>
             </section>   
        </div>
    </div>  
    <div class="row">    
    <div class="col-lg-8">
       <section class="panel panel-primary"><header class="panel-heading"> <center>BẢNG GIÁO VIÊN</center>  <span class="tools pull-right"><= LỐI VÀO</span> </header>  </section>
        </div>
    </div>
            </div>
            </section>
        </div>
    </div>
</asp:Content>
